import 'package:event_bus/event_bus.dart';
import 'package:get/get.dart';

class IntercomBus extends GetxController {
  static final EventBus eventBus = EventBus();

  static IntercomBus get to => Get.find();

  getBus() {
    return eventBus;
  }

  void sendEvent(IntercomEvent event) {
    eventBus.fire(event);
  }
}

class IntercomEvent {
  final int event;
  final dynamic data;

  IntercomEvent(this.event, this.data);
}
